package de.freudenreichdesign.webshop.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
@Table (name="CATEGORY")
public class Category implements Serializable{
	
	private static final long serialVersionUID = -8703949401130267035L;
	private long categoryID;
	private String title;
	private String description;
	
	@SuppressWarnings("unused")
	private Category() {}
	
	public Category(String title, String description) {
		this.title = title;
		this.description = description;
	}

	@Id
	@GeneratedValue (strategy=GenerationType.AUTO)
	@Column (name="CATEGORY_ID")
	public long getCategoryID() {
		return categoryID;
	}
	
	@SuppressWarnings("unused")
	private void setCategoryID(long categoryID) {
		this.categoryID = categoryID;
	}
	
	@Column (name="TITLE")
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	@Column (name="DESCRIPTION")
	public String getDescription() {
		return description;	
	}
	
	public void setDescription(String description) {
		this.description = description;
	}
}
